package qlsl.androiddesign.activity.subactivity;

import com.qlsl.androiddesign.kuaiwa.R;

import butterknife.Bind;
import qlsl.androiddesign.activity.baseactivity.SeparateFunctionBaseActivity;
import qlsl.androiddesign.view.baseview.FunctionView;
import qlsl.androiddesign.view.commonview.WidgetArtTextView;
import qlsl.androiddesign.view.subview.activityview.ShoppingListView;

public class ShoppingListActivity extends SeparateFunctionBaseActivity {

    @Bind(R.id.defaults_test)
    WidgetArtTextView defaults_test;


    @Override
    public int getLayoutId() {
        return R.layout.activity_shopping_listview;
    }

    @Override
    public void initView() {
        defaults_test.setText("设置");


    }

    public FunctionView<?> getFunctionView() {
        if (functionView != null)
            return functionView;
        return new ShoppingListView(this);
    }

    public void onNetWorkSucceed(String method, Object values) {
        if (method.equals("queryShoopingList")) {
            functionView.showData(values);
        }
    }


}
